package com.boarsoft.boar.soagov.lib.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.boarsoft.bean.ReplyInfo;
import com.boarsoft.boar.soagov.entity.FaceInfo;
import com.boarsoft.boar.soagov.lib.LibFaceBiz;
import com.boarsoft.common.Authorized;
import com.boarsoft.common.dao.PagedResult;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@RestController
@RequestMapping("/lib/face")
public class LibFaceAction {
	@Autowired
	private LibFaceBiz libFaceBiz;

	/**
	 * 查找应用关联库包的服务列表
	 * 
	 * @return
	 * 
	 */
	@JsonIgnoreProperties({ "face" })
	@RequestMapping("/list.do")
	@Authorized(code = "lib.face.list")
	public ReplyInfo<Object> list(String libId, String key, String orderBy, int pageNo, int pageSize) {
		PagedResult<FaceInfo> pr = libFaceBiz.list(libId, key, orderBy, pageNo, pageSize);
		return new ReplyInfo<Object>(true, pr);
	}
}